package com.suse.lhw.hms.authorizaiontserver.service.Impl;


import com.suse.lhw.hms.authorizaiontserver.dao.UUserMapper;
import com.suse.lhw.hms.authorizaiontserver.domin.UUser;
import com.suse.lhw.hms.authorizaiontserver.service.UUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.security.service.Impl
 * @ClassName: UUserServiceImpl
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2021/1/31 19:24
 * @UpdateUser: 更新者
 * @UpdateDate: 2021/1/31 19:24
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Service
public class UUserServiceImpl implements UUserService {

    @Resource
    private UUserMapper uUserMapper;

    @Override
    public int deleteByPrimaryKey(String userId) {
        return uUserMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(UUser record) {
        return uUserMapper.insert(record);
    }

    @Override
    public int insertSelective(UUser record) {
        return uUserMapper.insertSelective(record);
    }

    @Override
    public UUser selectByPrimaryKey(String userId) {
        return uUserMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(UUser record) {
        return uUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UUser record) {
        return uUserMapper.updateByPrimaryKey(record);
    }

}
